package org.ix.shiro.service;

import org.ix.common.models.IxUser;
import org.ix.shiro.model.LoginModel;

import java.util.Collection;
import java.util.Set;

public interface AccountService {

    String login(LoginModel loginModel);

    IxUser getUser(String username);

    Set<String> getUserRoles(Integer userId);

    Set<String> getUserPermissions(Collection<String> roles);
}
